home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / hc2_x / tcprogud.sit / TC Prog Guide / card_42911.txt < prev    next >
Text File  |  1991-02-27  |  1KB  |  67 lines

  1. -- card: 42911 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 4755
  5. -- name: 
  6.  
  7.  
  8. -- part 1 (field)
  9. -- low flags: 00
  10. -- high flags: 0007
  11. -- rect: left=30 top=78 right=296 bottom=478
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 0
  15. -- font id: 4
  16. -- text size: 9
  17. -- style flags: 0
  18. -- line height: 12
  19. -- part name: 
  20.  
  21.  
  22. -- part contents for card part 1
  23. ----- text -----
  24. /*
  25. *   FILE:    student.c
  26. *   AUTHOR:  R.G.
  27. *   CREATED: June 25, 1990
  28. *   
  29. *   Student methods
  30. */
  31.  
  32. # include "student.h"
  33. # include <stdio.h>
  34.  
  35. /******************************************************************
  36. *   override set()
  37. ******************************************************************/
  38. void    Student::set(void)
  39. {
  40.     int     temp_number;
  41.  
  42.     Person::set();   /* in TC, may use:  inherited::set() */
  43.     
  44.     printf("Enter student number:\n");
  45.     scanf("%d",&temp_number);    /* "shadowing" for TC safety */
  46.     student_num = temp_number;
  47. }
  48.  
  49. /******************************************************************
  50. *   override print()
  51. ******************************************************************/
  52. void    Student::print(void)
  53. {
  54.     Person::print();  /* in TC, may use:  inherited::print() */
  55.  
  56.     printf(", Student number: %d",student_num);
  57. }
  58.  
  59.  
  60.  
  61. -- part contents for background part 7
  62. ----- text -----
  63. 136
  64.  
  65. -- part contents for background part 4
  66. ----- text -----
  67. File 6 of 7: